<?php session_start(); ?>

<html>
<body>
<?php
	echo "Logged in as: ".$_SESSION['user'];

	if($_GET['studentid'] == 1)
	{
	echo '
	<h2> John Doe </h2>
	Parental Contacts:
	<ul>
		<li>Father (Jim):
			<ul>
				<li>Home : 502-555-1234</li>
				<li>Work : 502-555-1235</li>
			</ul></li>
		<li>Mother (Sue):
			<ul>
				<li>Home : 502-555-1234</li>
				<li>Work : 502-555-9876</li>
			</ul></li>
	<h3> Classes Enrolled </h3>
		<a href="./class.php?classid=1">7A Science</a>
	<h3> Dicipline </h3>
		<a href="./dicipline.php?diciplineid=1"> Detention April 5, 2008 </a>
		 ';
	}

	elseif($_GET['studentid'] == 2)
	{
	echo '
	<h2> Jane Doe </h2>
	Parental Contacts:
	<ul>
		<li>Father (Jim):
			<ul>
				<li>Home : 502-555-1234</li>
				<li>Work : 502-555-1235</li>
			</ul></li>
		<li>Mother (Sue):
			<ul>
				<li>Home : 502-555-1234</li>
				<li>Work : 502-555-9876</li>
			</ul></li>
	<h3> Classes Enrolled </h3>
		<a href="./class.php?classid=1">7A Science</a>
	<h3> Dicipline </h3>
		No Diciplinary Infractions
		 ';
	}


	else
	{
		echo '<br />';
		echo "Error: no student selected";
	}
?>
</body>
</html>